package com.itheima.demo.demo03;

import java.util.ArrayList;

public class List {
    public static void main(String[] args) {
        ArrayList<String>list=new ArrayList<>();
        list.add("额");
        list.add("成");
        list.add("hjkl");
        list.add("vhjkl");
        list.add(3,"dfghjk");
        System.out.println(list);
        String r = list.set(3, "分分钟");
        System.out.println("被替换的是"+r);
        System.out.println(list);
        String s = list.get(3);
        System.out.println(s);



    }}